#ifndef __CAPSULE_H__
#define __CAPSULE_H__
/////////////////
//include
/////////////////
#include"Vector3D.h"
#include"CollisionObject.h"
#include"Sphere.h"
/////////////////
//const
/////////////////

/////////////////
//class
/////////////////
class Capsule : public CollisionObject
{
public:
	Capsule(Vector3D start = Vector3D(),	Vector3D end = Vector3D(),float r = 0);
	~Capsule();
	CollInfo Collision(Sphere* sphere);
	CollInfo Collision(Capsule* capsule);
	CollInfo Collision(CollisionObject* object){return object->Collision(this);};
	Sphere GetStartSphere()		const{return Sphere(start,r);}
	Sphere GetEndSphere()		const {return Sphere(end,r);}
	Vector3D start;
	Vector3D end;
	float r;
};
#endif __CAPSULE_H__
